package org.geektimes.projects.user.web.service.impl;

import org.geektimes.projects.user.domain.User;
import org.geektimes.projects.user.web.repository.UserRepository;
import org.geektimes.projects.user.web.repository.DerbyUserRepository;
import org.geektimes.projects.user.web.service.UserService;

public class UserServiceImpl implements UserService {

    private UserRepository userRepository;



    @Override
    public int registerUser(User user) {
        userRepository = (UserRepository) new DerbyUserRepository();
        System.out.println(user.toString());
        userRepository.save(user);


        return 0;
    }
}
